﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using QLTV_Public;
using QLTV_Data;

namespace QLTV_BLL
{
  public  class NguoiDung_BLl
    {
      NguoiDung_Data nguoidung = new NguoiDung_Data();
      public int DoiMatKhau(NguoiDung_Public tenDn, NguoiDung_Public matKhau)
      {
          return nguoidung.DoiMatKhau(tenDn,matKhau);
      }
      public DataTable dangNhap_QuanLy(NguoiDung_Public tenDn, NguoiDung_Public matKhau)
      {
          return nguoidung.DangNhap_QuanLy(tenDn,matKhau);
      }
      public DataTable dangNhap_NhanVien(NguoiDung_Public tenDn, NguoiDung_Public matKhau)
      {
          return nguoidung.DangNhap_NhanVien(tenDn, matKhau);
      }
      public DataTable layDuLieu()
      {
          return nguoidung.LayDuLieu();
      }
      public DataTable TaoBang(string sql)
      {
          return nguoidung.TaoBang(sql);
      }
      public int insert_NguoiDung(NguoiDung_Public username, NguoiDung_Public password, NguoiDung_Public hoTen, NguoiDung_Public ngaySinh, NguoiDung_Public gioiTinh,NguoiDung_Public soCMT, NguoiDung_Public diaChi, NguoiDung_Public maNhom, NguoiDung_Public chucDanh, NguoiDung_Public dienThoai, NguoiDung_Public email)
      {
          return nguoidung.Insert_NguoiDung(username,password,hoTen,ngaySinh,gioiTinh,soCMT,diaChi,maNhom,chucDanh,dienThoai,email);
      }
      public int update_NguoiDung(NguoiDung_Public maNV, NguoiDung_Public username, NguoiDung_Public password, NguoiDung_Public hoTen, NguoiDung_Public ngaySinh, NguoiDung_Public gioiTinh,NguoiDung_Public soCMT, NguoiDung_Public diaChi, NguoiDung_Public maNhom, NguoiDung_Public chucDanh, NguoiDung_Public dienThoai, NguoiDung_Public email)
      {
          return nguoidung.Update_NguoiDung(maNV,username, password, hoTen, ngaySinh, gioiTinh,soCMT, diaChi, maNhom, chucDanh, dienThoai, email);
      }
      public int delete_NguoiDung(NguoiDung_Public maNV)
      {
          return nguoidung.Delete_NguoiDung(maNV);
      }
    }
}
